package com.example.MyThread.ThreadTest04;

/**
 * @author Jason
 * @PACKAGE_NAME com.example.MyThread.ThreadTest04
 * @Description
 * @date 2023-12-10 19:32
 */
public class MyThread extends Thread {
    public MyThread() {
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
//            try {
//                Thread.sleep(1000);
//            } catch (InterruptedException e) {
//                throw new RuntimeException(e);
//            }
            System.out.println(getName() + "@" + i);
        }
    }
}
